import { getPathByEnv } from '@/utils';

type Tprops = {
   url: string;
   size?: number;
};
const CircleAvatar = ({ url, size = 18 }: Tprops) => {
   return (
      <div
         className="rounded-full overflow-hidden shadow-md"
         style={{ width: `${size}px`, height: `${size}px` }}
      >
         <img src={getPathByEnv(url)} className="w-full h-full" />
      </div>
   );
};

export default CircleAvatar;
